package com.saclub.app.fragment;

import java.util.ArrayList;
import java.util.List;

import android.widget.BaseAdapter;
import android.widget.ListView;
import butterknife.Bind;

import com.saclub.app.R;
import com.saclub.app.activity.MyToolBarActivity;
import com.saclub.app.bean.part.News;
import com.saclub.app.handler.MyBaseHttpResponseHandler.HandlerType;

public abstract class NewsListFragment extends BaseProgressFragment<MyToolBarActivity> {

	@Bind(R.id.id_listview)
	protected ListView listview;

	private BaseAdapter adapter;

	private List<News> list = new ArrayList<News>();
	
	@Override
	protected int obtainContentRes() {
		return R.layout.frag_common_listview;
	}

	@Override
	protected void initParams() {
	}

	@Override
	protected void initRequest(HandlerType handlerType) {
		super.initRequest(handlerType);

	}

	public ListView getListview() {
		return listview;
	}

	public List<News> getList() {
		return list;
	}

	public void setAdapter(BaseAdapter adapter) {
		this.adapter = adapter;
	}


}
